package cn.gaaidou.binarynote;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
public class PerformanceModel {
    private static Map<Class<?>, Long> averageTimeMap = new HashMap<>();

    public static void putAverageTime(Class<?> clazz, long averageTime) {
        averageTimeMap.put(clazz, averageTime);
    }

    public static long getAverageTime(Class<?> clazz) {
        return averageTimeMap.get(clazz);
    }
}
